/*
 * @Author: sunzhijun 
 * @Date: 2019-04-21 14:50:35 
 * @Last Modified by: sunzhijun
 * @Last Modified time: 2019-08-20 13:48:29
 */

import React from 'react';
import './index.less';
import { base } from 'nc-lightapp-front';
import {render} from 'src/hrpub/common/frame';
const { NCForm, NCFormControl, NCCheckbox } = base;
const NCFormItem = NCForm.NCFormItem;

const LeftTree = render({
    actions: {}
})(({props, state}) => {
    const {syncTree, main, action, modal} = props;
    const { createModal } = modal;
    let { language } = main;
    return (
        <div className="entry-page-left-tree">
            {syncTree.createSyncTree({
                treeId: 'treeid',
                needSearch: false,
                needEdit: false,
                showLine: true, //显示连线
                defaultExpandAll: false,//展开所有节点
                showModal: false,
                onSelectEve: action.treeAct.selectTreeData,
                // onMouseEnterEve: action.treeAct.onMouseEnterEve, //鼠标滑过节点事件
                // editNodeCallBack: action.treeAct.editNodeCallBack,//编辑节点回调方法
                // addNodeCallBack: action.treeAct.addNodeCallBack,//  新增节点回调方法
                // delNodeCallBack: this.delNodeCallBack.bind(this),//删除节点回调方法
                // clickAddIconEve: action.treeAct.clickAddIconEve, //新增点击 回调
                // clickDelIconEve: action.treeAct.clickDelIconEve, // 删除点击 回调

            })}
        </div>
    );
});

export default LeftTree;